package com.suneee.trades.entity;

import java.io.Serializable;
import java.sql.Timestamp;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;

@Entity
@Table(name = "v_history_order")
public class HistoryOrder implements Serializable{

	/**
	 * 
	 */
	private static final long serialVersionUID = -3463421514926561202L;

	@Column(name = "shop_id")
	private Integer shopId;

	@Column(name = "tid")
	private String tid;

	@Column(name = "pay_time")
	private Timestamp payTime;

	@Column(name = "buyer_nick")
	private String buyerNick;

	@Column(name = "buyer_message")
	private String buyerMessage;

	@Column(name = "remark")
	private String remark;

	@Column(name = "channel_code")
	private String channelCode;

	@Column(name = "channel_name")
	private String channelName;

	@Column(name = "created")
	private Timestamp created;

	@Column(name = "is_refund")
	private boolean isRefund;

	@Column(name = "is_change_goods")
	private boolean isChangeGoods;

	@Column(name = "is_refund_goods")
	private boolean isRefundGoods;

	@Column(name = "status")
	private String status;
	
	@Column(name = "enterprise_code")
	private String enterpriseCode;
	
	@Transient
	private String shopName;
	
	@Transient
	private String tradesStatus;
	
	@Transient
	private Timestamp shoppTime;

	public Integer getShopId() {
		return shopId;
	}

	public void setShopId(Integer shopId) {
		this.shopId = shopId;
	}

	public String getTid() {
		return tid;
	}

	public void setTid(String tid) {
		this.tid = tid;
	}

	public Timestamp getPayTime() {
		return payTime;
	}

	public void setPayTime(Timestamp payTime) {
		this.payTime = payTime;
	}

	public String getBuyerNick() {
		return buyerNick;
	}

	public void setBuyerNick(String buyerNick) {
		this.buyerNick = buyerNick;
	}

	public String getBuyerMessage() {
		return buyerMessage;
	}

	public void setBuyerMessage(String buyerMessage) {
		this.buyerMessage = buyerMessage;
	}

	public String getRemark() {
		return remark;
	}

	public void setRemark(String remark) {
		this.remark = remark;
	}

	public String getChannelCode() {
		return channelCode;
	}

	public void setChannelCode(String channelCode) {
		this.channelCode = channelCode;
	}

	public String getChannelName() {
		return channelName;
	}

	public void setChannelName(String channelName) {
		this.channelName = channelName;
	}

	public Timestamp getCreated() {
		return created;
	}

	public void setCreated(Timestamp created) {
		this.created = created;
	}

	public boolean isRefund() {
		return isRefund;
	}

	public void setRefund(boolean isRefund) {
		this.isRefund = isRefund;
	}

	public boolean isChangeGoods() {
		return isChangeGoods;
	}

	public void setChangeGoods(boolean isChangeGoods) {
		this.isChangeGoods = isChangeGoods;
	}

	public boolean isRefundGoods() {
		return isRefundGoods;
	}

	public void setRefundGoods(boolean isRefundGoods) {
		this.isRefundGoods = isRefundGoods;
	}

	public String getStatus() {
		return status;
	}

	public void setStatus(String status) {
		this.status = status;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getEnterpriseCode() {
		return enterpriseCode;
	}

	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}

	public String getTradesStatus() {
		return tradesStatus;
	}

	public void setTradesStatus(String tradesStatus) {
		this.tradesStatus = tradesStatus;
	}

	public Timestamp getShoppTime() {
		return shoppTime;
	}

	public void setShoppTime(Timestamp shoppTime) {
		this.shoppTime = shoppTime;
	}
	
}
